package com.hunt.service.impl;

import com.hunt.dao.NewsQuickMapper;
import com.hunt.model.entity.NewsQuick;
import com.hunt.service.NewsQuickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sjs
 * @className
 * @description
 * @date 2020/10/10
 */

@Service
public class NewsQuickServiceImpl implements NewsQuickService {

    @Autowired
    private NewsQuickMapper newsQuickMapper;

    /**
     * 查询数据库最新10条数据
     *
     * @return
     */
    @Override
    public List<NewsQuick> findNewsQuickByPage(String dateTime, Integer sizeUp) {
        return newsQuickMapper.findNewsQuickByPage(dateTime,sizeUp);
    }
}
